﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>其他补助数据导入</title>
     <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
 <script src="@Url.Content("~/Scripts/checkinput.js")" type="text/javascript"></script>
    <style>
        input.txt,textarea{ width:90%; border:1px solid #aecaf0;}
        input.txt:focus,textarea:focus{border-color:#6e90be;}
        input.btn{ width:100px;}
        .readonly{ background:#ccc;}
        /**/.hid{ display:none;}
        th{ text-align:right;}        
a:link,a:visited {text-decoration:none;color:#1E5B8A;}
a:hover,a:active {text-decoration:underline;color: #FF5500;}
    </style>
    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)
    <script type="text/javascript">

        var rootUrl = '@Url.Content("~/YGZAllowance/")';

     

        function OK() {
            
                form1.submit();
           
        }


    </script>

</head>
<body>
    @using (Html.BeginForm("Import", "UpLevelAllowance", FormMethod.Post, new { id = "form1" }))
    {        
         <table cellpadding="3"><tr>
      
      
    </tr>
    
            <tr>
            <th >选择Excel文件:</th>
            </tr>
             <tr>
            <td  width="400">@Html.DevExpress().UploadControl(
            settings =>
            {
                settings.Name = "upload";
                settings.BrowseButton.Text = "浏览";
                settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
                settings.ClearFileSelectionImage.ToolTip = "清除选择";
                settings.ShowProgressPanel = true;
                settings.ValidationSettings.MaxFileSize = 20971520;                           
                settings.ShowUploadButton = false;
            }).GetHtml()</td>
            
       </tr>
            <tr>
                
                <td><a href="@Url.Content("~/DataTemplate/其他补助导入模板.xls")">其他补助导入模板文件下载</a></td>
            </tr>
           
        </table>
            
    }

</body>
</html>
<script>
  

    if (parent.pop) {
        parent.pop.SetHeaderText("其他补助信息导入");
    }

    var msg = '@ViewBag.Msg';
    if (msg) {
        if (msg == 'ok') {
            
           parent.refresh();
//           if(s=="true")
//           {
//           alert("导入成功！");
//           }
//           else
//           {
//           alert(s);
//           }
        }
        else {
            alert(msg);
        }
    }
</script>